<?php


namespace app\erp\model;


use think\Model;

class OrderImagedb extends Model
{
    protected $pk = 'id';
    protected $name = 'order_image';
    protected $autoWriteTimestamp = false;

    protected $append = ['up_time'];

    public function getUpTimeAttr($value, $row)
    {
        return date('Y-m-d H:i', $row['upload_time']);
    }
}